// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

import App from './App'
import './assets/css/bootstrap.min.css'

import router from './router.js'

Vue.use(VueRouter)
Vue.use(VueResource)

//管理组件通信
var Event = new Vue();

// 注册castsFilter
Vue.filter('castsFilter', function (value) {
  return value.map(function (v, i) {
    return v.name
  }).join('、');
})
let app = new Vue({
  router: new VueRouter(router),
  el: '#app',
  render: h => h(App)
})
